import 'package:flukit/flukit.dart';

class CountryInfo extends ISuspensionBean {
  String countryName;
  String tagIndex;
  String countryPinyin;
  String phoneCode;
  String countryCode;

  CountryInfo({
    this.countryName,
    this.tagIndex,
    this.countryPinyin,
    this.phoneCode,
    this.countryCode,
  });

  CountryInfo.fromJson(Map<String, dynamic> json)
      : countryName = json['countryName'] == null ? "" : json['countryName'];

  Map<String, dynamic> toJson() => {
    'countryName': countryName,
    'tagIndex': tagIndex,
    'countryPinyin': countryPinyin,
    'phoneCode': phoneCode,
    'countryCode': countryCode,
    'isShowSuspension': isShowSuspension
  };

  @override
  String getSuspensionTag() => tagIndex;

  @override
  String toString() => "CountryBean {" + " \"countryName\":\"" + countryName + "\"" + '}';
}